;SEE IF PAGESTREAM3 AND SOFTLOGIK ARE ASSIGNED AND EVERYTHING EXISTS
(set PGSdest (getassign "PageStream3" "a"))
(set SLdest (getassign "SoftLogik" "a"))
(if (OR (= PGSdest "") (= SLdest ""))
(abort "PageStream3: and/or SoftLogik: are not assigned. You must properly install PageStream3 before applying this update patch.")
)
(set @default-dest PGSdest)
(if (<> (exists "PageStream3:PageStream3") 1)
(abort "PageStream3 is not in the PageStream3: directory. You must properly install PageStream3 before applying this update patch.")
)
(if (<> (exists "SoftLogik:Libs") 2)
(abort "The SoftLogik:Libs directory is missing. You must properly install PageStream3 before applying this update patch.")
)
(if (<> (exists "SoftLogik:Engines") 2)
(abort "The SoftLogik:Engines directory is missing. You must properly install PageStream3 before applying this update patch.")
)
(if (<> (exists "SoftLogik:Printers") 2)
(abort "The SoftLogik:Printers directory is missing. You must properly install PageStream3 before applying this update patch.")
)
(if (<> (exists "SoftLogik:Filters") 2)
(abort "The SoftLogik:Filters directory is missing. You must properly install PageStream3 before applying this update patch.")
)
(if (<> (exists "SoftLogik:Effects") 2)
(abort "The SoftLogik:Effects directory is missing. You must properly install PageStream3 before applying this update patch.")
)
;SEE WHAT THE USER WANTS TO INSTALL
(set ALLflag 0)
(set SMAflag 1)
(message "\n\nThis will update your hard drive installation of PageStream 3.0 to version 3.0b. It requires that PageStream 3.0 be installed on your hard drive first. If you have 3.0a and not 3.0, you cannot use this patch. You must download the PS3BA1.LHA archive instead.\n\nYour original PageStream3 disks will not be modified by this update.")
(set install_mode
(askchoice
(prompt
"\nSelect an installation option.\n\nChoose `All' if you have a full PageStream3 installation. Choose `Smart' if you have a custom or minimum PageStream3 installation.\n")
(choices "All New and Improved 3.0b Files" "Smart Install")
(default 0)
(help
"Smart Install will check to see if a file exists before copying the new one to your hard drive. Thus, if you deleted the HP.printer driver because you didn't need it, the new one will not be installed.")
)
)
;SET FLAGS FOR NEW STUFF IF SMART INSTALL
(if (= install_mode SMAflag)
(
(set epsonflag
(askbool
(prompt
"Do you want to install the new custom Epson printer driver?\n\nThis driver also can be used for some Canon printers.")
(help
"This driver can be used on most Epson compatible printers and some Canon BubbleJet printers instead of using PageStream3's Preference driver with your AmigaDOS driver.")
(default 1)
)
)
(set fargoflag
(askbool
(prompt
"Do you want to install the new custom Fargo printer driver?")
(help
"This driver can be used on the Fargo Primera printer with or without the dye sublimation option.")
(default 1)
)
)
)
)
;COPY THE LHEX PROGRAM TO RAM:
(copyfiles
(source "PageStream3Disk1:lhex")
(dest "ram:")
(nogauge)
)
;UPDATE LIBS
(working "Patching Libraries...")
(run "ram:lhex >NIL: <NIL: -qfw=ram: x LibsPatch.lha")
(message "You MUST update any font path containing a PostScript font. Run PageStream3, choose Settings/Fonts, select the StudioFonts path and click on the Update gadget. Repeat for the SerialsFonts path, IQEfonts path and any other PostScript font paths you may have.\n\nThis is important!\n\nNot doing this will lead to problems.")